package com.gxy.learn.design.model.create.factory.factory_method;

/**
 * @description: 咖啡商店
 * @author: gaoxueyong
 * @Date: 2022/11/6 22:08
 */
public class CoffeeStore {
    private CoffeeFactory factory;

    public void setFactory(CoffeeFactory factory) {
        this.factory = factory;
    }

    public Coffee orderCoffee() {
        Coffee coffee = factory.createCoffee();
        return coffee;
    }
}
